# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=termcolor
pkgver=2.0.0
pkgrel=0
pkgdesc="Header-only C++ library for printing colored messages to the terminal"
url="https://github.com/ikalnytskyi/termcolor"
arch="noarch"
license="BSD-3-Clause"
makedepends="cmake ninja"
subpackages="$pkgname-dev"
source="https://github.com/ikalnytskyi/termcolor/archive/v$pkgver/termcolor-$pkgver.tar.gz"
options="!check"  # no automated tests provided

build() {
	cmake -G Ninja -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
72dead77fb9f3ff79432b1659b57c3d961a57b46305937acd0c221f5abb016f609dfaf7a9bf508bd7a073338ee604cf55f9915c8e8a76ddfaf6c68bc031e37f9  termcolor-2.0.0.tar.gz
"
